import request from '@/utils/request'

// 创建cdk与用户绑定关系
export function createuser(data) {
  return request({
    url: '/cdk/user/create',
    method: 'post',
    data: data
  })
}

// 更新cdk与用户绑定关系
export function updateuser(data) {
  return request({
    url: '/cdk/user/update',
    method: 'put',
    data: data
  })
}

// 删除cdk与用户绑定关系
export function deleteuser(id) {
  return request({
    url: '/cdk/user/delete?id=' + id,
    method: 'delete'
  })
}

// 获得cdk与用户绑定关系
export function getuser(id) {
  return request({
    url: '/cdk/user/get?id=' + id,
    method: 'get'
  })
}

// 获得cdk与用户绑定关系分页
export function getuserPage(params) {
  return request({
    url: '/cdk/user/page',
    method: 'get',
    params
  })
}
// 导出cdk与用户绑定关系 Excel
export function exportuserExcel(params) {
  return request({
    url: '/cdk/user/export-excel',
    method: 'get',
    params,
    responseType: 'blob'
  })
}